package demo4.pojo;

public class user
{
    private String username;
    private int age;
    private int id;
    private String password;
    private String nickname;
    public user(){}
    public user(String username,int age,int id,String password,String nickname)
    {
        this.username=username;
        this.age=age;
        this.id=id;
        this.password=password;
        this.nickname=nickname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    @Override
    public String toString() {
        return "user{" +
                "username='" + username + '\'' +
                ", age=" + age +
                ", id=" + id +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
